public class Max_2 {
    public static int max1(int a,int b){
        return a>b?a:b;
    }

    public static float max2(float a, float b, float c){
        float max = max1((int)a, (int)b);
        float ret = max1((int)max, (int)c);
        return ret;
    }
    public static void main(String[] args) {
        System.out.println(max1(1, 2));
        System.out.println(max2(1.0F, 2.0F, 3.0F));
    }
}
